When overriding initWithCoder is it always necessary to call [super initWithCoder: coder]

Posted by Evan on Stack Overflow See other posts from Stack Overflow or by Evan
Published on 2010-03-12T19:21:15Z Indexed on 2010/03/12 19:27 UTC
Read the original article Hit count: 661

In this code I am loading a View Controller (and associated View) from a .xib:

-(id)initWithCoder:(NSCoder *)coder
{
    [super initWithCoder:coder];
    return self;
}

This successfully works, but I do not really understand what the line [super initWithCoder:coder] is accomplishing. Is that initializing my View Controller after my View has been initialized?

Please be as explicit as possible when explaining. Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c